package j01neibulei;

class Fa{
    void f1(){
        System.out.println(111);
    }
}

public class J1 {
    public static void main(String[] args) {
        Fa fa = new Fa(){
            int age = 7;
            @Override
            void f1() {
                System.out.println("11111-2");
            }

            void f2(){
                System.out.println(22);
            }
        };
//        fa.f1();
//        fa.f2();
        new Fa(){
            int age = 7;
            @Override
            void f1() {
                System.out.println("11111-2");
            }

            void f2(){
                System.out.println(22);
            }
        }.f2();
    }
}
